package hy;

import hy.service.UserService;
import hy.service.impl.A;
import hy.service.impl.UserServiceImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext a = new ClassPathXmlApplicationContext("u.xml");
//        a.getBean(UserServiceImpl.class).login("aa","123");
        a.getBean(A.class).m1();
//        System.out.println(a.getBean("service").getClass());

    }
}
